import request from '@/utils/request'

// 查询患者入院基本信息列表 (分页)
export function selectPagePatVisitIndex(query) {
    return request({
        url: '/business/patVisitIndex/selectPage',
        method: 'get',
        params: query
    })
}

// 查询患者入院基本信息列表 (不分页)
export function listPatVisitIndex(query) {
    return request({
        url: '/business/patVisitIndex/list',
        method: 'get',
        params: query
    })
}

// 查询患者入院基本信息详细
export function getPatVisitIndex(visitIndexId) {
    return request({
        url: '/business/patVisitIndex/' + visitIndexId,
        method: 'get'
    })
}

// 新增患者入院基本信息
export function addPatVisitIndex(data) {
    return request({
        url: '/business/patVisitIndex',
        method: 'post',
        data: data
    })
}

// 修改患者入院基本信息
export function updatePatVisitIndex(data) {
    return request({
        url: '/business/patVisitIndex',
        method: 'put',
        data: data
    })
}

// 删除患者入院基本信息
export function delPatVisitIndex(visitIndexId) {
    return request({
        url: '/business/patVisitIndex/' + visitIndexId,
        method: 'delete'
    })
}


